<?php
/*
 * Created on 2011-4-11
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */

require ('Common.inc.php');
require('config/base.config.php');

require(SERVER_ROOT_PATH.'/lib/Framework.class.php');

new Framework();

$m=new MysqlDB(DB_SERVERR,DB_PORT,SAE_ACCESSKEY,SAE_SECRETKEY);

$link=$m->connect();
if(!$link){
	echo 'db error';
	exit;
}

$flag=$m->selectDB(SCHEME);
if(!$flag){
	echo 'db error';
	exit;
}

$sql='select * from record';

$m->query($sql);

$a=$m->fetchArray();

foreach($a as $v){
	echo $v['id'].'&nbsp'.$v['title'].'<br>';
}


?>
